package com.cwf.basic.mapper;

import com.cwf.basic.query.BaseQuery;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

public interface BaseMapper<T>{
    void insert(T t);
    void delete(Serializable id);
    void update(T t);
    T queryById(Serializable id);
    List<T> queryAll();
    long queryTotal(BaseQuery baseQuery);
    List<T> queryPage(BaseQuery baseQuery);
    void batchDelete(@Param("ids") List<Long> ids);
}
